import request from '@/utils/request'

// 查询项目开工申请列表
export function listStop(query) {
  return request({
    url: '/cbs/workplace/stop/list',
    method: 'get',
    params: query
  })
}

// 查询项目开工申请详细
export function getStop(id) {
  return request({
    url: '/cbs/workplace/stop/' + id,
    method: 'get'
  })
}

// 新增项目开工申请
export function addStop(data) {
  return request({
    url: '/cbs/workplace/stop',
    method: 'post',
    data: data
  })
}

// 修改项目开工申请
export function updateStop(data) {
  return request({
    url: '/cbs/workplace/stop',
    method: 'put',
    data: data
  })
}

// 删除项目开工申请
export function delStop(id) {
  return request({
    url: '/cbs/workplace/stop/' + id,
    method: 'delete'
  })
}
